<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<style type="text/css">
<!--
.pager {
	list-style: none;
}

.pager {
	font-size: 12px; font-weight: 400; margin: 0 auto; width: 90%; padding: 3px 10px 0 0; height: 26px; text-align: right;
}

.pager li {
	float: left; margin-right: 5px; line-height: 22px;
}

.pager li.disablepage {
	color: #999999;
}

.pager li.currentpage {
	font-weight: 700; margin: 0 8px
}

.pager li.currentpage a {
	color: #FFF; background-color: #1F3A87
}

.pager a {
	padding: 4px 8px; border: 1px solid #DCDDDD; text-decoration: none
}

.pager a:hover,.pager a:active {
	background-color: #1e50a2; color: #FFF
}
-->
</style>
<script type="text/javascript">
	function getKeyword() {
		return document.getElementById("searchKeyword").value;
	}
</script>

<div class="searchbox grid_12">
	<form action="knowledge2/knowledgeSearch2/searchResultView">
		<input type="hidden" name="categoryId" value=${categoryId }> <input
			type="text" id="searchKeyword" name="keyword" value="${keyword }"
			placeholder="输入服务交付物关键字"> <input type="submit" value="搜索"
			class="grey">
	</form>
</div>
<div style="width:90%">
	<c:forEach items="${result.content}" var="entity">
		<table class="search-result">
			<tr>
				<td class="td1"><span style="color:#666">[${entity.categoryName}]</span><a
					href="knowledge2/knowledgeSearch2/knowledgeInfoView?id=${entity.id}"
					target="_blank">${entity.title}</a></td>
			</tr>
			<tr>
				<td class="td2">${entity.contents}......</td>
			</tr>
			<tr>
				<td class="td3">阅读数(${entity.readTimes})&nbsp;&nbsp;评论数(${entity.commentaryTimes})&nbsp;&nbsp;<fmt:formatDate
						value="${entity.publishDate}" pattern="yyyy-MM-dd HH:mm" /></td>
			</tr>
		</table>
	</c:forEach>
</div>

<div id="list_paget">${pager}</div>